package com.xm.email.core;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "smtp")
@Setter
@Getter
@ToString
public class MailConf {
    private MailConf(){
    }

    /**
     * 邮箱发送smtp
     */
    private String emailSmtp;
    /**
     * 发送邮箱端口
     */
    private String emailPort;
    /**
     * 发送邮箱登录账号
     */
    private String emailAccount;
    /**
     * 发送邮箱授权码
     */
    private String emailPassword;
}
